home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-21 | 2.7 KB | 92 lines | [TEXT/MPS ] |
- # The command before:
- #
- # bedrc -c∂+∂+ -d _MAC -i {hfiles} -i {bclr} -i {bclh} -i {utilh} ∂
- # -i {cincludes} {cfiles}pane.r > {cfiles}pane.rez
- # rez -o {cfiles}pane.res {cfiles}pane.rez
- # set exit 0
- # delete -i R[0-9]≈.MLS
- # delete -i tmp.????[0-9]«5»
- # delete {cfiles}pane.rez
- # set exit 1
- #
- # The makefile after:
- #
- # BedrockRC -cpp -d _MAC-i {hfiles} -i {bclr} -i {bclh} -i {utilh} ∂
- # -i {cincludes} -o Files.res Files.r
- #
- #
- #
- # BedrockRC takes all the parameters that BedRC takes plus one new one. -o is a
- # mandatory option that tells what the output file should be.
- #
- # BedrockRC will stop processing on error as opposed to the old way which would
- # continue after an error. This was a hassle because the temporary files that had
- # the errors would be deleted, making it difficult to diagnose the problem.
- # BedrockRC does not delete those files on error.
- #
- # BCL.r needs to be modified to load xxx.r directly rather than the old catenate
- # style we have been using in the makefile because BedrockRC does not support
- # this. This is how we are doing it now in the makefiles.
- #
- # bedrc -c∂+∂+ -d _MAC -i {hfiles} -i {bclr} -i {bclh} -i {utilh} ∂
- # -i {cincludes} {bclr}bcl.r > {cfiles}bcl.rez
- # catenate {bclr}macbcl.r >> {cfiles}bcl.rez
- # {REZ} -o {cfiles}bcl.res {cfiles}bcl.rez
- # set exit 0
- # delete -i R[0-9]≈.MLS
- # delete -i tmp.????[0-9]«5»
- # delete {cfiles}bcl.rez
- # set exit 1
- #
- # Add the following code to bcl.r.
- #
- # #ifdef BUILD_MAC
- # #pragma native begin
- # include "macbcl.r";
- # #pragma native end
- # #endif // BUILD_MAC
- #
- ######################################################################
- ######################################################################
-
- # This gets BedRC to do the work instead of the makefile.
-
-
-
- # Find the name of the output file and concatenate the rest of the
- # parameters for BedRC
-
- Set Exit 0
- Set bedRCParameters ""
- Set lastParameterWasOutputOption 0
- for Param in {"Parameters"}
- If "{Param}" =~ /-o/
- set lastParameterWasOutputOption 1
- else if {lastParameterWasOutputOption}
- Set outFile "{Param}"
- set lastParameterWasOutputOption 0
- else
- Set bedRCParameters "{bedRCParameters} {Param}"
- set lastParameterWasOutputOption 0
- End
- End
- Set Exit 1
-
-
- BedRC {bedRCParameters} > BedRC.pipe.rez
- Set ExitStatus "{Status}"
- Exit "{ExitStatus}" If "{ExitStatus}"
-
- Rez -o "{outFile}" BedRC.pipe.rez
- Set ExitStatus "{Status}"
- Exit "{ExitStatus}" If "{ExitStatus}"
- SetFile "{outFile}" -t 'rsrc' -c 'RSED'
-
- Set Exit 0
- Delete -i R[0-9]≈.MLS ∑ Dev:Null
- Delete -i tmp.????[0-9]«5» ∑ Dev:Null
- Delete BedRC.pipe.rez ∑ Dev:Null
- Set Exit 1
-
- Exit "{ExitStatus}"
-